package com.xy.biz.auth.domain.req;

import com.xy.lang.validation.annotation.AlertMessage;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class UserCodeRegisterRequest {

    /**
     * 用户编码，登录名
     */
    @NotBlank(message = "userCodeRequired")
    @AlertMessage(code = "userCodeRequired", msg = "登录名不能为空")
    private String userCode;
    /**
     * 密码
     */
    @NotBlank(message = "passwordRequired")
    @AlertMessage(code = "passwordRequired", msg = "密码不能为空")
    private String password;
    /**
     * 显示名称
     */
    private String userName;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 用户类型：0-客户，1-商家，2-平台，3-运维
     */
    private Integer type;
    /**
     * 验证码Id
     */
    private Long captchaId;
    /**
     * 验证码编码
     */
    @NotBlank(message = "captchaCodeRequired")
    @AlertMessage(code = "captchaCodeRequired", msg = "验证码不能为空")
    private String captchaCode;

}
